package org.wangchaocheng.cloudgallery.config.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Minio配置参数类
 *
 * @author wangchaocheng
 * @date 2025/02/20
 */
@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class MinioConfigurationProperties {

    /**
     * 是否启用
     */
    private Boolean enable;

    /**
     * 访问地址
     */
    private String endpoint;

    /**
     * accessKey类似于用户ID，用于唯一标识你的账户
     */
    private String accessKey;

    /**
     * secretKey是你账户的密码
     */
    private String secretKey;

    /**
     * 默认存储桶
     */
    private String bucketName;

}
